html,
body,
div,
p,
dl,
dt,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
th,
td {
	margin: 0;
	padding: 0;
	list-style: none;
}

html,
body,
#app {
	height: 100%;
	overflow: auto;
	color: #333;
	font-family: '微软雅黑';
}

aside,
body,
form,
div {
	&::-webkit-scrollbar-track {
		border-radius: 0;
		background-color: rgba(0, 0, 0, 0.1);
	}
	&::-webkit-scrollbar {
		-webkit-appearance: none;
		width: 6px;
		height: 6px;
	}
	&::-webkit-scrollbar-thumb {
		cursor: pointer;
		border-radius: 2px;
		transition: color 0.2s ease;
		background-color: rgba(0, 0, 0, 0.15);
	}
}
a {
	color: var(--primary);
	text-decoration: none;
}
input:invalid {
	outline: none;
	border-color: initial;
}
input[aria-hidden='true'] {
	display: none !important;
}

.sw_agent_container {
	width: 100vw;
	height: 100vh;
	padding: 8px;
	overflow: hidden;
	box-sizing: border-box;
	background-color: #e9ebf0;
}

.sw_agent_aside {
	display: flex;
	flex-direction: column;
	transition: all 0.1s linear;
	overflow: hidden;
	flex-shrink: 0;
	.el-button.added {
		display: flex;
		align-items: center;
		justify-content: center;
		margin: 16px 8px 8px;
		font-size: 16px;
		flex-shrink: 0;
		padding: 9px;
	}
}
.agent_aside_header {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	height: 40px;
	padding: 8px;
	i.icon {
		width: 40px;
		height: 40px;
		font-size: 20px;
		line-height: 40px;
		text-align: center;
		font-style: normal;
		border-radius: 4px;
		background-color: var(--icon-background);
	}
	h2 {
		flex: 1;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
		margin-left: 10px;
		font-size: 16px;
		line-height: 1;
	}
	.el-button {
		font-size: 20px;
		color: #606266;
		padding: 5px;
	}
}
.agent_aside_content {
	flex: 1;
	overflow: hidden;
	.el-scrollbar__wrap {
		overflow-x: hidden;
	}
	.el-scrollbar__view {
		padding: 0 8px;
	}
	.item {
		display: flex;
		align-items: center;
		justify-content: space-between;
		border-radius: 6px;
		line-height: 20px;
		padding: 6px 10px;
		font-size: 14px;
		cursor: pointer;
		&:hover,
		&.active {
			background-color: #dcdfe6;
		}
	}
}
.agent_aside_bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
	padding: 8px;
	height: 32px;
	.el-button.setting {
		display: flex;
		font-size: 20px;
		color: #606266;
		padding: 5px;
	}
	h4 {
		flex: 1;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
		text-transform: uppercase;
		font-weight: normal;
		margin-right: 8px;
		text-align: right;
		font-size: 12px;
		line-height: 1;
		color: #676f83;
	}
	img {
		width: 24px;
		height: 24px;
		flex-shrink: 0;
	}
}

.sw_agent_main {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background-image: linear-gradient(180deg, rgba(249, 250, 251, 0.9), rgba(242, 244, 247, 0.9) 90.48%);
	border-radius: 16px;
	padding: 0;
	.el-scrollbar {
		flex: 1;
		overflow: hidden;
	}
	.el-scrollbar__wrap {
		overflow-x: hidden;
	}
}

.agent_main_header {
	height: 40px;
	padding: 8px;
	flex-shrink: 0;
	.box {
		float: left;
		display: flex;
		align-items: center;
	}
	.btn {
		float: right;
	}
	i.icon {
		width: 40px;
		height: 40px;
		font-size: 20px;
		line-height: 40px;
		text-align: center;
		font-style: normal;
		border-radius: 4px;
		background-color: var(--icon-background);
	}
	h2 {
		flex: 1;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
		margin-left: 10px;
		font-size: 16px;
		line-height: 1;
	}
	.el-button {
		font-size: 20px;
		color: #606266;
		padding: 6px;
		&.setting {
			font-size: 14px;
			font-weight: bold;
		}
		&.is-disabled {
			color: #c0c4cc;
		}
		&:hover {
			background-color: #f2f6fc;
		}
	}
}

.agent_chat_bottom {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	margin: 0 auto 16px;
	max-width: 768px;
	padding: 10px;
	width: 100%;
	border-radius: 12px;
	background-color: #fff;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	.el-input__inner {
		border: none;
		font-size: 16px;
		padding: 0 12px;
		background-color: #fff !important;
	}
	.is-disabled .el-input__inner {
		cursor: default !important;
	}
	.el-button {
		width: 36px;
		height: 36px;
		padding: 0;
		border: none;
		flex-shrink: 0;
		background-image: url('~@/assets/send.svg') !important;
		background-repeat: no-repeat;
		background-position: center;
		background-size: 16px;
		cursor: pointer;
		&.is-disabled {
			cursor: default;
		}
	}
}

.agent_about_message {
	border-radius: 12px;
	.el-message-box__header {
		padding: 36px 24px 0;
	}
	.el-message-box__title span {
		display: block;
		width: 56px;
		height: 56px;
		font-size: 28px;
		line-height: 56px;
		text-align: center;
		border-radius: 8px;
		background-color: var(--icon-background);
	}
	.el-message-box__content {
		font-size: 16px;
		margin-top: 8px;
		font-weight: bold;
	}
}

.agent_popover_class {
	padding: 0;
	.el-popover__title {
		margin: 0;
		font-size: 16px;
		font-weight: bold;
		background: url('~@/assets/comment.svg') no-repeat 24px center;
		background-size: 18px;
		padding: 16px 24px 16px 56px;
		border-bottom: solid 1px #ebeef5;
	}
}

.agent_chat_setting {
	margin: 16px auto 8px;
	border-radius: 12px;
	max-width: 700px;
	width: 100%;
	.el-card__header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 16px 24px;
		font-weight: bold;
		font-size: 16px;
		background: url('~@/assets/comment.svg') no-repeat 24px center;
		padding-left: 56px;
		background-size: 18px;
		border-bottom: none;
		.el-button {
			padding: 0;
		}
	}
	.el-card__body {
		position: relative;
		padding: 0;
		&::before {
			position: absolute;
			content: '';
			width: 100%;
			height: 1px;
			background-color: #ebeef5;
			left: 0;
			top: 0;
		}
	}
}

.agent_chat_content {
	width: 100%;
	max-width: 768px;
	padding-top: 32px;
	margin: 32px auto 0;
	position: relative;
	&::before {
		position: absolute;
		content: '';
		left: 0;
		top: 0;
		width: 100%;
		height: 1px;
		background-image: linear-gradient(to right, transparent 0, #e4e7ed 50%, transparent 100%);
	}
}
